/*
 * VideoCamera.hh
 *
 *  Created on: 2014-4-9
 *      Author: root
 */

#ifndef VIDEOCAMERA_HH_
#define VIDEOCAMERA_HH_
#include "VideoCapture.hh"
#include "VideoEncode.hh"

class VideoCamera
{
public:
	static VideoCamera*createNew(int Width ,int Height);

	VideoCamera(int Width ,int Height);
	virtual ~VideoCamera(void);
	void CameraInit(const char*Device_name, int fps);
	void CameraDestory(void);
	void GetNextFrame(void);
public:
	uint8_t *pOutFrame;
	int outFrameLen;
private:
	uint8_t *pInFrame;
	VideoEncode *video_Encode;
	VideoCapture *video_Cpature;
	FRAME_BUF *capture_buf;
	int usWidth;
	int usHeight;

};

#endif /* VIDEOCAMERA_HH_ */
